package xyz.robinbingo.effectivejava.chapter02.item05.first;

import xyz.robinbingo.effectivejava.chapter02.item05.Lexicon;

import java.util.List;

// Inappropriate use of static utility - inflexible & untestable!
public class SpellChecker {
    private static final Lexicon dictionary = new Lexicon();

    // Noninstantiable
    private SpellChecker() {
    }

    public static boolean isValid(String word) {
        return "hello".equals(word);
    }

    public static List<String> suggestions(String typo) {
        return null;
    }
}